package view;

import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JFrame;

import controller.Controller;

import model.ElementList;

@SuppressWarnings("serial")
public class MainWindow extends JFrame
{
	public void buildWindow()
	{
	  ElementList list = new ElementList();
	  list.addElement(new String("Element1"));
	  list.addElement(new String("Element3"));
	  list.addElement("element2");
	  list.addElement("eleeeeeeee");
	  ListVue listView = new ListVue(list);
	  
	  
	  ElementList listaa = new ElementList();
	  listaa.addElement("AAAAAAAAAA");
	  ListVue autreList=new ListVue(listaa);
	  this.add(autreList);
	  this.setLayout(new GridLayout(1,2));
	  
	  //Controller controller = new Controller(list,listView);
	  this.add(listView);
	}
}